package org.r.items.tally.db.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Value("${spring.application.name}")
    private String appName;
    @Value("${server.port}")
    private Integer port;

    /**
     * http://localhost:23090
     * @return
     */
    @RequestMapping("/")
    public String index() {
        return appName + ":" + port;
    }
}
